package connection;

import org.eclipse.core.runtime.IProgressMonitor;

import common.BodySet;
import common.DiscussionSentence;

public interface IServerConnection {

	public abstract void hookBodySet(BodySet bSet) throws Exception;

	public abstract boolean login(String username, String password)
			throws Exception;

	public abstract void logout();

	public abstract String getName();

	public ServerConnectionConfig getConfig();

	public abstract void createChat(String id);

	public abstract void sendMessage(String id, DiscussionSentence sentence);

	public abstract void addProgressListener(IProgressMonitor monitor);
	
	public abstract void removeProgressListeners();

	public abstract void sendFastMessage(String id, String toBeSent);

}